package procilege.impl.formatter;

import procilege.compute.ExprFormatTraveller;
import procilege.compute.PlaceTypeMetadata;
import procilege.compute.PlaceType;
import procilege.lang.PredicateEntityProperty;

@PlaceTypeMetadata(type = PredicateEntityProperty.class)
public class PredicateEntityPropertyFormatter implements PlaceType<ExprFormatTraveller> {

	public void visit(ExprFormatTraveller tr, Object place) {

		StringBuilder sb = tr.getBuilder();
		PredicateEntityProperty n = (PredicateEntityProperty) place;
		tr.setout(n.getEntity());
		sb.append('.');
		tr.setout(n.getProperty());
	}
}